package com.sofwin.service;

import com.sofwin.dto.ResourceDto;
import com.sofwin.pojo.SysResource;

import java.util.List;

public interface ResourceService {
    List<ResourceDto> selectAllResources();

    List<SysResource> selectAllResources2();

    boolean save(SysResource resource);

    SysResource selectById(Integer id);

    boolean deleteById(Integer id);

    List<ResourceDto> selectResourceByRoled(Integer roleId);

    List<ResourceDto> selectRoleResource(Integer roleId);

    List<SysResource> selectResourceByRoleId(Integer roleId);
}
